package com.DesignMode.SimpleFactory;

/**
 * @author Sandsboy
 * @description:广州皓醒科技有限公司
 * @date :2020/3/16 17:34
 */
public class BuildModer {

    String name;
    String sex;

    public static  BuildModer builder() {
        return new BuildModer();
    }

    public BuildModer name(String name) {
        this.name = name;
        return this;
    }

    public BuildModer sex(String sex) {
        this.sex = sex;
        return this;
    }
    public BuildModer build(){
        return this;
    }


    public static void main(String[] args) {

        BuildModer buildModer = BuildModer.builder().name("生龙紫").sex("女").build();
    }
}
